import { http, request } from './index';
import type { LoginRequest, LoginResponse, RegisterRequest } from '@/types/auth';

export const loginApi = (payload: LoginRequest) =>
  request<LoginResponse>(http.post('/v1/auth/login', payload));

export const registerApi = (payload: RegisterRequest) =>
  request<void>(http.post('/v1/auth/register', payload));

